<div class="widgets">
    <div ba-panel ba-panel-title="资讯管理" ba-panel-class="with-scroll">
        <div ng-if="is_suer_root.news.indexOf('add')>-1" style="position: absolute;right: 3%;top: 5px;"><button type="button" class="btn btn-info btn-raised" ng-click="xinzeng()">新增</button></div>

        <form class="form-horizontal ng-pristine ng-valid ng-scope">

            <!--<div class="col-lg-6 col-sm-12">
                <div class="col-sm-3">
                    <h4 style="line-height: 35px;">发布日期：</h4>
                </div>
                <div class="col-sm-4">
                    <p class="input-group" style="margin-bottom: 0px;">
                        <input type="text" class="form-control" uib-datepicker-popup="yyyy/MM/dd" ng-model="dat.dat1.date_" is-open="dat.dat1.opened" ng-required="true" close-text="关闭" 30 clear-text="清空" current-text="今天" alt-input-formats="altInputFormats" />
                        <span class="input-group-btn">
                    <button type="button" class="btn btn-default" ng-click="dat.dat1.open()"><i class="glyphicon glyphicon-calendar"></i></button>
                </span>
                    </p>
                </div>
                <div class="col-sm-4">
                    <p class="input-group" style="margin-bottom: 0px;">
                        <input type="text" class="form-control" uib-datepicker-popup="yyyy/MM/dd" ng-model="dat.dat2.date_" is-open="dat.dat2.opened" ng-required="true" close-text="关闭" 30 clear-text="清空" current-text="今天" alt-input-formats="altInputFormats" />
                        <span class="input-group-btn">
                    <button type="button" class="btn btn-default" ng-click="dat.dat2.open()"><i class="glyphicon glyphicon-calendar"></i></button>
                </span>
                    </p>
                </div>
            </div>-->

            <div class="col-lg-6 col-sm-12">
                <div class="col-sm-3">
                    <h5 style="line-height: 35px;">创建日期：</h5>
                </div>
                <div class="col-sm-4">
                    <input type="date" style="width: 100%;" id="dat1" class="form-control border-r5 width-100">
                </div>
                <div class="col-sm-4">
                    <input type="date" style="width: 100%;" id="dat2" class="form-control border-r5 width-100">
                </div>
            </div>
            <div class="col-lg-6 col-sm-12">
                <h5 style="line-height: 30px;" class="col-sm-3 col-xs-5">资讯标题:</h5>
                <div class="form-group  col-sm-4 col-xs-5">
                    <input type="text" class="form-control" id="exampleInputName2" placeholder="请输入资讯标题" ng-model="search_data.title">
                </div>
                <div class="col-sm-2">
                    <button type="submit" class="btn btn-primary" ng-click="News_count_b()">搜索</button>
                </div>
                <div class="col-sm-2 ">

                </div>
            </div>
        </form>


        <div style="min-height:300px;padding: 20px;">
            <table class="table table-bordered">
                <thead>
                    <tr valign="middle">
                        <th class="browser-icons"></th>
                        <th class=" text-center">资讯标题</th>
                        <th class=" text-center">资讯缩略图</th>
                        <!--<th class=" text-center">发布日期</th>-->
                        <th class=" text-center">创建日期</th>
                        <th class=" text-center" style=" width: 250px; ">操作</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="item in Consulting_list " style="line-height:70px ">
                        <td style="line-height:70px; width: 50px;" class=" text-center ">{{item.num}}</td>
                        <td style="line-height:70px ; max-width:250px" class=" text-center " title="{{item.title}}">{{item.title | Intercept:15}}</td>
                        <td style="line-height:70px " class="text-center "><img style="height: 60px; margin: 5px; " ng-src="{{::(val )}} " ng-repeat="val in item.imgs"> </td>
                        <!--<td style="line-height:70px ;    width: 150px;" class=" text-center ">{{item.start_data}}</td>-->
                        <td style="line-height:70px ;    width: 150px;" class="text-center">{{item.createtime|date :'yyyy-MM-dd'}}</td>
                        <td style="line-height:35px " class=" text-center ">
                            <span class="iscursor" ng-click="edit(item.id)" ng-if="is_suer_root.news.indexOf('update')>-1">编辑</span>
                            <span class="iscursor" ng-click="fn_delete(item.id)" ng-if="is_suer_root.news.indexOf('remove')>-1">删除</span>
                            </br>
                            <span class="iscursor" ng-click="top_news(item.id,1)" ng-if="item.num!=1&&item.num!=2&&item.num!=3">top1</span>
                            <span class="iscursor" ng-click="top_news(item.id,2)" ng-if="item.num!=1&&item.num!=2&&item.num!=3">top2</span>
                            <span class="iscursor" ng-click="top_news(item.id,3)" ng-if="item.num!=1&&item.num!=2&&item.num!=3">top3</span>
                            <span class="iscursor" ng-click="top_news(item.id,4)" ng-if="item.num==1||item.num==2||item.num==3">取消置顶</span>
                        </td>
                    </tr>
                </tbody>
            </table>
            <div class="text-center row " style="padding: 20px; ">
                <div class="col-sm-6 text-right">
                    <ul uib-pagination total-items="bigTotalItems " style=" margin: 0; " previous-text="上一页 " next-text="下一页 " first-text="首页 " last-text="尾页 " ng-model="bigCurrentPage" ng-change="pageChanged(bigCurrentPage) " max-size="5 " class="pagination-sm " num-pages="numPages "
                        items-per-page="search_data.limit"></ul>
                </div>

                <div class="col-sm-6 text-left"><label>
                         <select style="height: 30px;font-weight: 300;" class="form-control"  selectpicker ng-model="search_data.limit"  ng-change="News_count_b()"  ng-options="i for i in [5,10,20,50,100]">
                        </select>
                    </label> /条（每页）</div>
            </div>
        </div>

    </div>
</div>